home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1681 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.sni.de!news
  2. From: Josef Moellers <mollers.pad@sni.de>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Are libraries Compiler dependent?
  5. Date: 16 Jan 1996 07:29:52 GMT
  6. Organization: Siemens Nixdorf Informationssysteme AG, Paderborn, Germany
  7. Message-ID: <4dfk5g$jpd@nervous.pdb.sni.de>
  8. References: <rmhanson.82.30FAD0B2@students.wisc.edu>
  9. NNTP-Posting-Host: uranium.pdb.sni.de
  10. X-Newsreader: NN version 6.5.0 #2
  11.  
  12. In <rmhanson.82.30FAD0B2@students.wisc.edu> rmhanson@students.wisc.edu (ryan m hanson) writes:
  13.  
  14. >Just as the title says are libraries dependant?
  15.  
  16. [ ... ]
  17.  
  18. >or do I have to take the seperate *.c files and create my owm w/ its own *.h?
  19.  
  20. There are several reasons why libraries are (compiler) dependant:
  21.  
  22. - the calling sequence (i.e. the actual machine instructions generated
  23.   to call the function/subroutine) may vary between compilers
  24.  
  25. - the header files on the machine used to generate the library may not
  26.   match the header files on the machine where you use the library.
  27.  
  28. So it's better to use the same compiler AND an identical machine when
  29. generating the library.
  30.  
  31. Happy linking,
  32.  
  33. Josef
  34. --
  35. Josef Moellers        work: mollers.pad@sni.de
  36.             home: josef@firefox.pb.owl.de
  37.